Home page pagination fix