Fix bug in spritelib_add.