fix insider trading query pagination bugs