fix C++ warning