small pagination bug