startend range fix