fixed error in dates