Fix call to a member function get_compressed() on a non-object