coping better with missing last_line data