fix issue triangle rendering