fix model init