Fixed error in tex template structure