Fix FGases envelope xquery script.