Idoverhead error in cmd

hello, i am keep receiving this error while i am with tag on on duty ! also idoverhead is shaking as you can se in my video. any advice how to fix it? its indicating a problem in server.lua:341 which is :

this is the cmd error: SCRIPT ERROR: @idoverhead/server.lua:341: bad argument #1 to ‘pairs’ (table expected, got nil)

function DoesTagExist(player, badge)

for k,v in pairs(labels[player]) do

    if v.badge == badge then

        return true

    end

end