fixed convert.cc