attempt to fix bug with url in mailer