fix count records