Fix a bug in observer filtering