correct bug with ending group in QSettings