Fixed the includepaths error for middleware