Fixed looping issue

Checked the wrong variable.
Arguments

Closes #16