Fix backspace issue on Mac OS X.