fix buggy single-list queue