Fix typo.
Fix progress bar id
Improve searching of sprites, code cleanup.