Corrected array index resulting in faulty command line parsing