fix fts.middlewares to toolkit.middleware