fixed #45
Merge pull request #46 from mozillazg/fix-prev

fixed #45