Fix typo

Second range parameter is exclusive