Fix task failure in triangle example