Fix the initial loading of lines

This fixes a bug where the initial line loading would be triggered multiple times,
and a bug that incorrectly set requestedLines, causing this behaviour to repeat
Merge pull request #348 from glowing-bear/fix-initial-line-loading

[FIXED] Fix the initial loading of lines