list traversing fix
Merge pull request #101 from kajdus/master

list traversing fix