fixed weird error thingy with sending mail