Fix for larger matrix.