fix bug with notification on email