fixing issues in covariance matrix indexation (all RV functions)