fix date bug introduced recently.