FIX buggy list iteration for one-element list