Fix bug which decoded elliptic curve key data wrongly.