Fixed pagination for bugs.