fix bug with applyMaterialToObjectByGuid()