Fixing a validation error