ticket:3 fix middleware typo