Fix too much error messages, while registering agents