let's see if that corrects the count query problem with pagination