fix bug with mail client