Fix bug in reading in size of matrices for GF