elliptic curve bug fix try