fixed minor bug in RTSprite