Fixed bug in horizontal seam generation