(I think) fix bug where the tail pointer of a linked list wasn't updated properly
(I think) fix bug where the tail pointer of a linked list wasn't updated properly

rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir,rhansen/rpstir