fix spatial bin collector
(cherry-picked from 301aac2)