fixed line rendering bug