correct delete in openedfiles, bug#3601945