Fix bug in levelsOflist
Merge pull request #102 from ly29/master

Fix bug in levelsOflist