fix #2057: Reliable crash when opening a certain cache