Fix compression crash