slight improvement to create.matrix.fvm