fixing a console bug