Hotfix: Adds missing line to triangles
Adds check for the type of the expression of the if statement