Fix model collection bug.