Fix module un/loading.