Make invokable middleware work again.