fix the remove seam's bug