A fix for the XopenIM() errors.