Fixed a few printer bugs