fixed bug in settings-handling