fix std:string null issue