fix some bugs in printer