position property detection fix