fix print function problem.
fix print problems.