Fixed indentation which fixes the issue of the legend
line toggling