Fixed a bug with modules.