Fixed the assemble data not being preserved by the middleware