Corrected code for loading modules.