fixed issue between start and end time