Fix notification iteration in emails