fix toggle for compression level broken by previous commit