fix IMAP sync issue