Why am I getting duplicate notifications?