Fixed bug with end date.