follow-up fix to the middleware view functionality