fixed option parsing.