fix the setState in SimBox2D