Fixed dupicate TE bug