Fixed unable to accurately determine module state.
Fixed incorrect mapping of language & templates when preloading.