Fix bug with debugSettings