fix select validation