fixed #1731:change struct to class