bug fix on parse options