Fixed bug of Tangent when there's multiple outputs