Object created with pen tool not selected after it is created