stitch flip (fix issue #14)