Fix issues when rendering only part of the model