Fix problems with avg'ed 'counts' not working