Fix bug in tokenizer where buffer fails to find limit