This isn't your whole code, but I'll take a guess...
I have no idea what you're doing here:
Lua Code:
foreach(LibStub("AceConfigRegistry-3.0").tables,function(k,v)
ACFG:NotifyChange(k)
end)
Every usage I've seen of this method is to call :NotifyConfig(ADDON_NAME_HERE)