fixed bug with incorrect row index length in IRCMatrix.