Fixed a bug that cause the program to crash if no arguments were given