Bugfix for valid date format