Fixed some print rendering bugs.