I’m guessing the library stack a separate stack - what happens if you make it a sub-stack? Further questions - can you check defaultstack, defaultfolder, stacksinuse just before calling your custom error dialog?