Fixed mail output bug