fixed bug in cov stat generation