Use correct variables in control script.

[merge]