fixed QSettings bug and functionality