fix compute tangent errors