Fix triangle classification