fixed an issue where stacks were not properly popped off
add hasChild script