fix(pdk) don't modify iterated table when building the phases
fix(pdk) don't modify iterated table when building the phases

### Summary

> The behavior of next is undefined if, during the traversal, you assign
> any value to a non-existent field in the table. You may however modify
> existing fields. In particular, you may clear existing fields.

Kong/kong,Kong/kong,Kong/kong