fix option parsing.