fix notify method