Fixed the bug causing the program to hang when an invalid command line was provided.