Fixup in the extension detection