Added pagination detection on root category pages. Fixes #18