Pet always behind of character

It looks like the orientation is just changing instead of the position, if you always want something to be behind all the time maybe look at this topic: