If I use var/list/has_sprites() it gives me that error:
http://pastebin.com/9vhBkb8a