Update class.modulefactory.php