Fixed a invalid date bug