bug fix, `set` out of scope