Fix another crash in DEX