applying recovery keys patch