Fixed bug calling settings