change the filters middleware form.

Signed-off-by: Daogang Tang <daogangtang@gmail.com>