Fix wf name retrieval.
Merge pull request #4036 from HassenRiahi/UpdateWFNameRetrieval

Fix wf name retrieval.