Fixes re-weaking a variable inside a block