Fixed hat not being rotated correctly