Added fix for connectivity matrix using dipy

Provided kindly by Rob Reid from the dipy email list