fix bad argument order