Fix pagination for tickets