choose the whole mesh and press alt + m or merge by distance and remove all the doubles and try worked for me