fix type in Middleware constant
version bump