Stop leaking query count text record data