fixed option-parsing bug