code added to correct dungeon to world transition