Fix archive recovery

After rewinding archive recovery failing and old master
cannot work as new standby