     work.testWorld.goalManager.worldGenerationEnded() if work.testWorld.ended
     serialized = testWorld.serialize()
     window.BOX2D_ENABLED = false
-    World.deserialize serialized.serializedWorld, @shared.worldClassMap, @shared.lastSerializedWorldFrames, @finishBeholdingWorld(goalStates), serialized.startFrame, work.level, serialized.endFrame
+    World.deserialize serialized.serializedWorld, @shared.worldClassMap, @shared.lastSerializedWorldFrames, @finishBeholdingWorld(goalStates), serialized.startFrame, serialized.endFrame, work.level
     window.BOX2D_ENABLED = true
     @shared.lastSerializedWorldFrames = serialized.serializedWorld.frames
 


  # say: debugging stuff, usually off; log: important performance indicators, keep on
  say: (args...) -> #@log args...
  log: (args...) -> console.info "|#{@shared.godNick}'s #{@nick}|", args...

  testWorker: =>
    return if @destroyed

    console?.profile? "World Generation #{(Math.random() * 1000).toFixed(0)}" if imitateIE9?
    work.t0 = now()
    work.testWorld = testWorld = new World work.userCodeMap
    work.testWorld.levelSessionIDs = work.levelSessionIDs
    work.testWorld.submissionCount = work.submissionCount
    work.testWorld.flagHistory = work.flagHistory ? []
    testWorld.loadFromLevel work.level
    work.testWorld.preloading = work.preload
    work.testWorld.headless = work.headless
    work.testWorld.realTime = work.realTime
    if @shared.goalManager
      testGM = new GoalManager(testWorld)
      testGM.setGoals work.goals
