fix yet another crash in dmg format