changed max page number bug on queue page