Fixed another bug when running from the command line.