Fixed bug in next_scene