fix buggy index in sparse connectome