Corrected removeTrailingSlash middleware location.