Fixing var cur_scene not changing when changing the scene