Fixed incorrect argument order

Incorrect argument order results in bad_argument error and it makes stack trace unusable