fixed command line indexing error