fix a bug for check isosceles triangle