fix get pipe id for valves