fixed bugs in settings