Fixed Console having two reader threads reading the input

Please review this pull-request. This is an important fix