Fixed bug when updating mail version