fixed warnings for validator