Fixed incorrect index on commandline argument.