the selection/caret position got lost when some cells were edited