date bug correction