documentsCount fix