fixed total records count