Fix very stupid gzip bug. Closes #296.