In the function "backspace" there is a line ` if cursor_position ~= 9 or current_time[9] == 0 then` that produces a bug in certain situations. I think it should be like ` if cursor_position ~= 9 or history[#history][9] == 0 then`