fixed a render problem with lines