fixing validator errors