fix controller scoping