Reverse the param list when generating the call node.
When setting a variables value; change value of the first variable of that name you meet.

And that seems to resolve that bug.