fix setting secret