fix bugs and date at print ticket