fix options validation