Fixing bug when started with no command line arguments