fix typing over selected text