fixed configurePhysics bug