When you work with him, moving him through gates or narrow places, insist that he stand back , and I mean well back, until you open the gate, stand to the side and "invite" him though (send him ahead of you). It's important to practice these kinds of things in places and times when there is not anxiety, such as the first turn out of the moring. And be 100% consistant about it. NEVER allow him to barge through a gate, even if it's not a real problem to you THAT time.
Expect perfect manners EVERY time, and then the problem time will get better.