fix to crashes on dungeon entrance