Fixed input bug on oSX