bugfix cost in choose by param