fix settings variable assigning