Remove duplicated needles.