fixing duplicate notification bug