Fix validator when it is a Proc