I agree with Fati coming on.
It was my viewing that Barca in the second half were in the ascendancy. Whatever had been said by Xavi at half time was working. The most likely course of action, was another goal for Barca. But LDJ was subbed, RM got the game back. Hit the post, then scored.