lastLines fix