Fixed bug with settings initialization