Fix middleware JS error.