fixes bug in confounder-adjustment process