fixes when output is Array fails capture_execute