fix a api order bug