fix getNextMod
Merge pull request #4 from metakirby5/fix-getNextMod

fix getNextMod