Fixed the bug with zero-counters between pipeline stages.