fix a bug in a linked ring implementation; tests pass