fixed a bug in NotifyEngine