finish zigzag conversion fix issue #5