fixed bugs in settings dialog