BUG: explicitly make sure correlation matrix is of correct dimension