fix clear bounding box
* $.each doesn't work when removing boxes