Yep, that's probably what happened. Try to encourage him through the door with a treat. Don't play into his fear or make a fuss over it as it'll just encourage it. Act like there's nothing that's going to happen to him, confident and secure when going in and out, and again use his favorite treat so he connects going through the door as a good thing.