Fixed bug in Sprite