fix countByArchived