fix a bug in loading connectivity matrix