I figured out the problem. Enemies respawn not when you leave the dungeon, but when you stay at an inn. If that's not what you intended you should probably fix it.