Fix resumption token (Closes #321)