Fix bug that cause multiple identical child action calls to cause corrupted output.