Fixing a pipeId bug.

After each execution, the pipeId must be reset to zero. Otherwise
later rounds will throw segfault.