fix in order to make middle wares work again.
0.4.5