Fixed the dumb xml loading for sprites.

Probably remove the traces later.
Fixed some stuff in sprite