Fixed a validation bug