I tried to break down the code by using "engine_gettaskinfo" to list all running functions before the level_load and after the level_load (right before the wait(1)), but it didn't help at all. None of the running functions seem to lead into that problem.