Fixes nextFrame

Resolves #130