Fixed some settings bugs.