Fix drawing pagination when there is only one page.