Fixing parameter order in error.

Fix for Issue #579