fixed heisenbug where first line of token could misteriously disappear