fixed sending notification bug