fix for first values where start or end is null