Fixed bug with settins