Fix for calling setColumns during edit does not work

When calling setColumns() while a cell is being edited, weird things
happen.