Fixed bug with dates.