Fixed lookup to prevent adding duplicate notifications