Fix for incorrect init of ValidationError.