Fixed recursive module scope bug.