fix bug when regress out only 1 gene.
fix bug when regress out only 1 gene.: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: fix bug when regress out only 1 gene.
The task
**Title:** fix bug when regress out only 1 gene.
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.