Fixed problem with emails