Fixing covariance rotation issue as described in issue #19