fix controller instance var scoping