Fixed typo in createEPcurve method