end time to start time bug fixed