Fixing Sprite bug