Mine does that sometimes, I have two identical hides on both sides but he likes to wedge himself between the vivarium glass and the hide. 3 sides of the tank are covered with black foam boards so it should feel more "secure". My guess is he just likes the more snug fit. But he eventually moves back into the hides.

I'm sure your snake is similar, and needs to get used to the new bark.