fix typo and rename settings var