Fixed a bug in loading modules.