Fixed bug with reading command line arguments.