Update email function fixed.
Merge pull request #1203 from phaidon/update-email-fix

Update email function fixed.