Fix bug in RigidBody2D.