Fix pagination nav creation outside of table.