fixed zig-zag-ing in plots