Swap argument order to match convention.

Fixes #1595.