small fix for option checking