Fix a bug where providers for a closed view still get events