Fixed a date bug