fix bug on multiple pages category change