fix model::compact()