Yes, from what I read you did the right thing! I do the same with Finn as he has always been reactive towards certain dogs. I must say on the beach there often is no problem as he can run away if he scared, always keeping an eye on us, so he doesn’t go far away and the other dog looses interest...