Fixes double-dash in path before id.