Fix the insertion of sprite names.

Fixes bug where the sprite name is not inserted in the batch.