Fix offset panic with smaller results than minLength