fix for small error in code zigzag found