fix option check bug. (issue #110)