fixed validate error