remove duplicate ref