It is most annoying when trying to debug loops. My loop returns $null, when I am sure I added things using $addtok. I did, but then this strange behavior deletes everything if the last value added happens to be $null. But it's things like this which never get fixed. I suppose I will just have to do my own checking every time I need to use token identifiers.