fixed crash in QDA covar calculation