Resolve errors in groupCNVs.R