Fixing homepage pagination