Fix reconstruction of identity keys.