fix a bug to send notification in UI