small fix to covariance/hierarchical code