Fixes some digest email bugs