Fix middleware typo.