Fix a date bug