fix for get-line that works on empty last line