Fixed some bugs in the settings screen.