fixed mail bug