fix "can't select same file twice"