fixed errors in Model now that GameObject exists.