Sprite loading fix