fix for off-by-one error on offset parameter in API call