fixing line style bug