In a victory for small shareholders, the Third District Court of Appeal ruled Wednesday that a trial court erred in its award of more than $125,000 in investigative costs, based on dismissal of a derivative action not brought in bad faith.