Fixed busted code NextToken handling code.

NextToken handling was busted. Fixed it.