Fixed a bug with modifying lines on later pages

ipairs -> pairs~