Fixed a priting bug