Sub-workflow with wait Node Returns Incorrect Output to Main Workflow

Maybe this helps in your case…