Phase 4 cl_hooks error help

Hey guys were having this problem of Phase Four when when you click on an item/gun you get and error message and the menu for that item pops up on the top left hand corner where you cant touch/click it. So im going to post the error here and if anyone could help me it would be greatly appreciated.

[phasefour\gamemode\schema\cl_hooks.lua:80] attempt to get length of field ‘Panels’ (a nil value)

[phasefour\gamemode\schema\cl_hooks.lua:101] attempt to get length of field ‘Panels’ (a nil value)


This is the code for both lines

local panel = menuPanel.Panels[#menuPanel.Panels];

I am having the same problem.

D: