Fix connectMtoM and connect1toM