Fixed issue where not all lines would be rendered, fixes #2.