Fixed the Exception in case of ECDSA