Console app fix