Fix bug of toast notification.