Fix bugs in email views.