fix variables in email forming