fix c++ warning