ensure correct rendering of lines on edges