Fixed the case when triangle are really really wired