Syntax error and invalid triangles fixed