Bug fix for .tex \input figures