Fixed passing container to global middleware.
NPM