Fix on insert and backspace