Fix settings initialization