Fix tangent reading/writing.

I'm not sure about the negation, though.