email log bugfix