fix deleting mailboxes