fix argument order in error messages