fixed bug in unified_model regarding the new email routines.