Scope expands into variables on rendering