fix error middleware installation documentation