fix validator errors