fix from Nikolas to principal_curvature.cpp