fixed bug in ``_get_lines``