bug fixes for boxedit