Fix editing of wrong file