Ensure proper scopes in tail deleted frames.