Fixed settings bug introduced by previous commit