fix a bug for linux centos g++ compiler.