fix patching flask_mail