Patch up the imports.