Fixed error in reading command line arguments