Half my writing time is usually spent trying to get a conversation back on the track I started out on, while keeping the tangent. (I usually end up liking the tangent. <g> Even if it does mess up and/or totally contradict the dialogue already in place). But, oh it's a good feeling when I succeed and manage to keep both.
I'm glad I'm not the only one this happens to!