fixed a validation issue