fix get_private_key for old addresses