Fix bug in recalculate tangents