fix option parse error handling