Fix wordpress pagination error