Final fix for the normal smoothing algorithm