Fixed this damn list function

It didn't work. That was annoying.
(I realized that thanks to Kervinou, thanks mate)