fix bugs convert to string