Fixed pagination for the Admin area so the page doesn't crash