Fixed some bugs in settings pages.