fix api dropdown selection.