fixed a bug in argument parser.