Fix: avoid unwanted resize of covariance