fix one more scoping issue