removed 2nd re-ording of modules based on XML file.
fixed bug that was suppoed to detect duplicate factory names