Fixes

Missing update on node->children when call realloc.