fixed the plot line breaking issue