fix document count