It will work because $target(name) puts a number on each spawn making the name unique. $target(name,clean) gives you the same name for each.
$target(name) == a_small_bat_00
$target(name) == a_small_bat_01
$target(name,clean) == a small bat
$target(name,clean) == a small bat