Fix bug when using multiple parallel statements in a block.