minor fix for empty list in get_lines