migration fixes.
email log fix.