Fix issues with the doc route.