Fix the filters behavior when specify the multiple routes and use nested controller

ref #1617 
The filters behavior is incorrect when specify the multiple routes and use nested controller.
I fixed it.