Fixed bugs in CommonSettings.