Fixed problem with dates.