Fixing minor bug with getting curve key from socket options