Fixed a bug for the SpritesLength and the animations