fixed hmatrix dependency