bugfix record counting for new records