Fix overflows from recursive imports.