mobile pagination bug fix