minor fix in Sprite class methods