fix bug in settings button.