fix bugs with validate options