Fix critical error involving the reloading of modules.