end/startdate error final fix