fixed opening of legacy cfg files