bug correction in date