fix bug introduced in 611
fix bug introduced in 611: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: fix bug introduced in 611
The task
**Title:** fix bug introduced in #611
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.