Fixes adding of new Agent