Fixed bug in refList