Fix bug with invalid uri path when no auth