fix line plotting, correlation plot is still broken