Fixed bug in command line parsing