fix record count