Fixing unread counts bug on ios.