correct `pair-for-each`

bug fixed