printing bug fix