R forced closed due to non pd cov matrix