fix printer bugs