Fixed mistake with assigning settings variable