fixed model email code