diff --git a/lib/galaxy/datatypes/converters/gz_to_uncompressed.xml b/lib/galaxy/datatypes/converters/gz_to_uncompressed.xml
index af1ab71f6d29..4ff4b8344fa4 100644
--- a/lib/galaxy/datatypes/converters/gz_to_uncompressed.xml
+++ b/lib/galaxy/datatypes/converters/gz_to_uncompressed.xml
@@ -6,7 +6,7 @@ gzip -dcf '$input1' > '$output1'
{"output1": {
"name": "${input1.name[0:-len('.gz')] if $input1.name.endswith('.gz') else $input1.name} uncompressed",
- "ext": "${input1.ext[0:-len('.gz')] if $input1.ext != 'vcf_bgzip' else 'vcf'}"
+ "ext": "${'vcf' if $input1.ext == 'vcf_bgzip' else $input1.ext[0:-len('.gz')] if $input1.ext.endswith('.gz') else $input1.ext}"
}}
@@ -21,6 +21,15 @@ gzip -dcf '$input1' > '$output1'
+
+
+
+
+
+
+
+
+