Fixed the simulation bug with Box2d