fix read of settings