fix issues in character animation