Fixed misplaced clearScreen();