Try recompiling all your script libraries that are referenced by the agent. Strange it only occurs on some, but that's the only time I've seen this message.
Make sure you compile them bottom up though (e.g. agent uses lib1, lib1 uses lib2, lib2 uses lib3 and 4)
Re-save lib4, lib3, lib2, lib1...