fix settings parsing