remove duplicate close