fixed the controller scope