Fixed problem in command line parsing