fix on loop problem in skeleton animation