fix empty notification emails problem