fixing up errors in mail