Fixed a bug in readArg.