fix update date bug