bugfix for email