fix triangle