western  bar, Yul Brenner opens the door to get the telegram from Juniors  dad. At this point, Junior has no hat on, and in the next shot,  Junior has a hat. When Yul turns to talk to Junior, Junior is taking  the hat from the counter to put it on.