fix brushing constraints
update matrix when loading new dataset