fix lty param in legend