fixed error in TokenQueue