fix bug when backspacing text inside a cell