Fixes the #segment method

Parameters were not structured properly for 2.0 api