Fixed bug in parsing command line args