fix inter-module dependencies.