fixed issue with PhysicsEntity not removing itself correctly.