Fix degenerated cross product bug.