ima: fix bug in argument order