notification: fix filtering bug (#358)