Fixed some printing issues.