fixed bug in dates_to_fix