Fixed a bug in the resumption token generation