fixes #1022 unread count broken in search results