make a dirty hack in paginator threadsafe