Correct handling of start/end parameters.