I was making a walking gani with a sword yesterday and I finished the direction facing down. Then when I finished I changed it to direction right and made the gani walk right. After when I checked back on the down it reseted

When ever I do that and no matter what direction I change it to, it happens. Help please?