Fixed middleware w/ wrong parameter