Fixed spawnicon functions in search

A fix for #165