fix bug and update tcpdf dependency