fix model compare (before generation)