Fix bug global variable $_setting - refs BT#8783