html printing bug fix