bug fixing for edit api params