Bug fixes in creating valid AWE workflow document.