Fixed a bug with SpriteComponent