simplified how creating child tasks is handled
fixed the variable name to resolve child count

resolves http://bugs.web2project.net/view.php?id=1473