fixed bugs when reopening logging level settings (issue #258)