fix validator show&hide bug