fixed a command line argument reading bug.