Fixed a bug with prompt on OSX