Fixed a minor issue on the mass emailing button