fix removal of wrong file