fixing end time (was wrong)