Fixed issue when playing animation while changing the sprite sheet