email log fix