fix settings array access