Fixed a compression method error when reading

This was not a problem, but it could be if more compression methods are
added.