Correct some date bug