Add script to fix end_dates