Small fix in triangle intersection function