fix for the possible id clash with sources and sinks