PORTED EMERALD FIX