Bugfix for date_validator