Fix distortion matrices column/row access.