Fixed an issue where dynamically loaded modules were not correctly registered.