fixed code convert bug