fix g++ warning