DModelPanel - Issue

Hello, have trouble with DModelPanel.
When i opened my menu for 10 times iv got errors, why this happened?

[LUA]
local icon = vgui.Create(“DModelPanel”, icon_pos)
icon:SetMouseInputEnabled( false )
icon:SetModel(info.model)
icon:SetSize(40, 40)
local mins, maxs = icon.Entity:GetRenderBounds()
icon:SetCamPos(mins:Distance(maxs) * Vector(0.75, 0.75, 0.5))
icon:SetLookAt((mins + maxs) / 2)
icon:SetToolTip(description)

local oldPaint = icon.Paint

function icon:Paint()
local x, y = self:LocalToScreen( 0, 0 )
local w, h = self:GetSize()

local sl, st, sr, sb = x, y, x + w, y + h


local p = self
while p:GetParent() do
	p = p:GetParent()
	local pl, pt = p:LocalToScreen( 0, 0 )
	local pr, pb = pl + p:GetWide(), pt + p:GetTall()
	sl = sl < pl and pl or sl
	st = st < pt and pt or st
	sr = sr > pr and pr or sr
	sb = sb > pb and pb or sb
end


render.SetScissorRect( sl, st, sr, sb, true )
	oldPaint(self)
render.SetScissorRect( 0, 0, 0, 0, false )

end

[/LUA]

Please, more information about your “info.model” table.

Did you try to get a entity that doesnt exist anymore?

The darkrp entity table
No, im opened menu 10 or more time by pressing f4