fix the wrong parameter order of inst_handle's