fix the notifications coode