Remove duplicate for assign pattern