resolved undo bug on boxes moved.