Remove duplicates

I just added a part that remove duplicates within the error list