Fixed bug for clearing the console