fix issue where start time and end time were the same