fixed memory cleanup issues in Box2D