performance fix in model renderer