Fixing bugs related to sending judge email.