Fix typo in EndPybaldMiddleware