fixed c_str issue