fixed rigidbody deletion