 CONT: When Jack is in the prison, and he is speaking to the other  prisoners about getting the key from the dog, he is wearing his hat.  However, when Will comes to the prison to talk to Jack about the  Black Pearl, Jack is no longer wearing it. He leaves the cell  without returning to get it, and then when he reclaims his  effects, the hat is not among them. However, in the next scene, as  Jack talks to Will, Jack is seen with the hat again.