fix diagonal lines draw