fixed fatal email issue