Dungeon key respawn failure

I play full offline. If I die in a dungeon, it does not matter which respawn option I pick, I always get respawned in the town the dungeon is closest too. What’s worse, when I respawn using a key it eats my key and sends me to town and the dungeon is reset.