Fixed the resumption token parsing code