Fixed an error in combine dates