Fixed error when no arguments are supplied on command line