removing strange duplication of tex