Fix resetting cached data if the original matrix is changed...