Set nextFrameID on goTo()

Fixes an issue where `nextFrameID` is not set correctly when `goTo()` is called directly.