fix bug with nextFrameID
Merge pull request #208 from FredGithub/master

fixed bug whereby nextFrameID doesn't update when using pagination