Fixed error in email class