Also update curve type on EN_setheadcurveindex. Co-Authored-By: milad ghiami <milad-ghiami@users.noreply.github.com>