Fixed linestyle bug