Fixxed console input reading