Clearing the memory didn't help, but now I seem to get some different error messages??
Have you tried to clear memory prior to running the first FEM matrix? It maybe that the second works because kkk has had no prior remembered definitions. Try after including the Clear statement before your definition for kk.
Clear["Global`*"]
Also mathematica seems to think there's something wrong with my brackets, but I can't see what it is either.