Set loadedFrames correctly.
Use totalFrames for default scene.