fixed flipped patch in harp plugin