Fix compression header removal for the serializable case

Also I think that GH-144 is related to this issue.