All that Addon.xxx = yyy (well, anything requiring character or other addon data) should at least go into the OnEvent script under a
Code:
if event == "PLAYER_LOGIN" then
Addon.xxx = yyy
end
code block so that the system has a chance to do some loading for your character before actually trying to initialise those variables. It's why K.Spec is failing first time in.
you will have to change
Code:
Loading:SetScript("OnEvent", function()
too
Code:
Loading:SetScript("OnEvent", function(self, event)