Minor fixes to nextFrameID variable