ILMerge fix (reimplemented)