fix string*char error