Fixed bug where internal required modules were ignored.