Fix popping on non-active branches

No match.