bugfix, added tex template