Fixed a really bad oversight that would have nuked any correctly-formed affinity matrix.