Bugfix: wrong variable used in email template