Children categories not shown in dashboard

I solved by force refreshing the cache (by @passatgt).
i.e., place this line after the insertion:

delete_option("{$taxonomy}_children");

Thanks!