thermal printer fixes