Fixes agent_id missign field on registration