Bugfix for notification emails