Fixed bug in printer.c.