Fixed bug introduced in Sprite library