remove duplicate resources