CModule: fix error in shared memory connection