fix imap sync issue