Fix .tex loading offset issue