You overwrite it somewhere. Also this sets it twice. Print after settings or use debug to watch the value.