fixed minor bug in arg parser