Fix bug with ajax pagination on front page