fix tangent computing