Fix notification detection