Fixed up bug in edge stitching