Fix error in parsing command line options