Fix: socid was not caught.
Fix: numbering modules was not correctly scanned.