little fixes for sprite
Merge pull request #5454 from ricardoquesada/sprite_fixes

little fixes for sprite