bugfix for api param