fixed bug that did not pass the correct model to be homogenized.