BUG: $values in getnhmat