More scoping fixes with bind