Correct start and end time of a session