fix unread count in template