restore matrix [skip ci]