reg of agents repaired

now it works!