Fix pagination layout.