Fix bug in tikz scale bar print
Fix bug in tikz leaf print