IPsec Peer problem after updating to ROS 7

Hello,
I have a problem. I updated the os on two RB750Gr3s to 7.13.1. IPsec tunnel was not working, it looked likt not all settings made the update. So I removed all configuration under IPsec and now I cannot configure IPsec tunnel.
It is the same problem on both of them. When I want to add a peer with an address of the other router I get an error:

Couldn’t add New IPsec Peer - Multiple initiator peers for the same address/dns (6)

I can add a peer with whatever different address.
Later I disocvered, that I cannot add a peer with name “peer1”:

Couldn’t add New IPsec Peer - Name can’t repeat (6)

It seems like there is already a Peer entry with name “peer1” and address that I want to use, but there are no peers visible in the list.
When I export the config to a file it hands for a while and then in the peer section i get:

#error exporting "/ip/ipsec/peer" (timeout)

I tried:

/ip ipsec peer
remove [find]

but is just hangs.
Same with

remove [find name=peer1]

and

remove [find address=/address I have problem with/]

It seems like at the os update there were some kind of a “ghost” peers remaining that I cannot remove and that causes problems even when exporting config.

Please, any sugestions other than factory reset are most welcome, as those are routers in business enviroment with tens of active users.

Just an update FYI.
Due to lack of any better ideas I went with a factory reset and importing the config ommiting any IPsec settings just to be on the safe side.
Problem resolved. No invisible ghost peers anymore. It must have been some kind of bug during OS update.