I moved the mainboard too far away and the cables came out of the connector, without damage (whew). In this situation, when putting back the pins in the connector, remember that the pinout is plain simple: referring to the other end of the cable the order is pin-to-pin (1 to 1, 2 to 2, etc.).