model build fix