This happened when removing vertex normal flipping in the render engine. But actually the normal of the first face in the curve was flipped on rendering, because it used a different vertex order than other places. Also removed the hack that computes a face normal only from a triangle instead of a quad.