Fix weird backspace behavior in osx