fix bug for text handles in cleanfigure, create PDF before TikZ