fix triangle problem;