fix bug of equal start and end time