Fix bug where holding mouse outside of dungeon would generate errors