Fixed collapsing to work per-backend.