Remove islands before trying to linear fit