Fixed bug in settings