Fix overriding required modules references.