fixed the options validation