fix for merging dates