bugfix clearing boxes