Fixed bug in command line parser