Some fixes for printer